<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>angularJs</title>
    <meta name="Copyright" content="All Rights Reserved"/>
    <link rel="shortcut icon" type="image/x-icon" href="itcast.ico"/>
    <link rel="stylesheet" type="text/css" href="base.css"/>
    <script src="js/angular.min.js"></script>
    <script type="text/javascript">

        /**
         * 定义模块
         */
        var myApp = angular.module("myApp",[]);

        /**
         * 模块中添加控制器
         */
        myApp.controller("myController",function ($scope) {
            /**
             * 定义数组
             */
            $scope.list = [100,200,300,400,500];
        })
    </script>
</head>
<!-- 指定AngularJS应用的根元素 -->
<body ng-app="myApp" ng-controller="myController">
   <ul>
       <!--这里的item就是每一个元素-->
        <li ng-repeat="item in list">
            {{item}}
        </li>
   </ul>
</body>
</html>